﻿using System.Collections.Generic;
using Soundteller.Bus.Handlers.Interfaces;
using Soundteller.Bus.Model.Interfaces;
using System;

namespace Soundteller.Bus.Repositories.Interfaces
{
    public interface IMessageHandlerRepository
    {
        void Add(IMessageHandler messageHandler);
        void Remove(IMessageHandler messageHandler);

        List<IMessageHandler> GetByMessageType(IMessage message);
        bool Exists(IMessageHandler messageHandler);
    }
}
